import click
from vcat.__main__ import add_cmd
from vcat.utils.config import AppConfigManager
# for migrate
app_conf = AppConfigManager(app_name='app_template')


from vcat.interface import AbstractApp, AbstractEnv


class ModTemplate(AbstractApp):

    def set_up(self, env):
        self._env: AbstractEnv = env
        pass

    def tear_down(self):
        pass


app = ModTemplate


@add_cmd
@click.help_option('-h', '--help')
@click.option('-m', '--market', default='CN', help='市场')
@click.option('-f', '--freq', default='all', help='要更新的数据， {daily: 1d, minute: 1m, all: all}')
@click.pass_context
def mt_command_template(ctx):
    """
    command template
    """
    pass






